package com.lqq.designPattern.bulider_pattern.factory.abstractFactory;

public class Client {
    public static void main(String[] args) {
        //创建工厂
        //ItalyDessertCoffeeFactory factory = new ItalyDessertCoffeeFactory();
        AmericanDessertCoffeeFactory factory = new AmericanDessertCoffeeFactory();
        //生产产品
        Coffee coffee = factory.createCoffee();
        Dessert dessert = factory.createDessert();

        System.out.println(coffee.getName());
        dessert.show();
    }
}
